<!DOCTYPE html>
<html>
<head>
	<style type="text/css">
		.selected{
			font-size: 20px;
			color: red;
		}
		li a{
			font-size: 10px;
			color: gray;
		}
	</style>
</head>
<body>
	<?php
		foreach ($data as $row)
		{
			echo sprintf('<li><a %s href="%s">%s</a></li>',
				$row['dpt_id'] == $id ? 'class="selected"' : '',
				U('Test/test',array('id'=>$row['dpt_id'])),
				$row['dpt_name'].$row['dpt_id']
			);
		}

	?>
</body>
</html>
